{% load website_info %}
{% verbatim %}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <link rel="shortcut icon" href="/static/img/favicon.ico">

    <title>在线评测系统 - 后台管理</title>

    <!-- global css begin -->
    <link href="/static/css/admin.css" rel="stylesheet">
    <!-- global css end -->
</head>

<body ms-controller="admin">

<div id="browser-unsupported" style="display: none">人生苦短, 何必还在用这么老的浏览器~
    当前网页 <strong>不支持</strong> 你正在使用的浏览器, 为了正常的访问,
    请 <a href="http://browsehappy.com/">升级你的浏览器</a>。
</div>
<script>
    if(navigator.userAgent.indexOf("MSIE") > -1){
        document.getElementById("browser-unsupported").removeAttribute("style");
    }
</script>

<!-- nav begin -->
<nav class="navbar navbar-masthead navbar-default navbar-static-top">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                    aria-expanded="false" aria-controls="navbar">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">oj admin</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li class="active">
                    <a href="/" target="_blank">主页</a></li>
                <li><a href="/problems/">题目</a></li>
                <li><a href="/contests/">比赛</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                       aria-expanded="false">
                        {{ username }}
                        <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="/logout/">退出</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</nav>
<!-- nav end -->

<div class="container main">
    <div class="row">
        <!-- admin left begin-->
        <div class="col-md-2">
            <ul class="list-group">
                <div ms-repeat="adminNavList">
                    <li class="list-group-header">{{ el.name }}</li>
                    <li class="list-group-item" ms-repeat-item="el.children" ms-attr-id="getLiId(item.hash)" >
                    <a ms-attr-href="item.hash">{{ item.name }}</a>
                    </li>
                </div>
            </ul>
        </div>
        <!-- admin left end -->
        <img src="/static/img/loading.gif" id="loading-gif">
        <!-- custom body begin -->

        <div ms-include-src="template_url" data-include-rendered="hide_loading" data-include-replace="true"></div>

        <!-- custom body end -->
    </div>
</div>

{% endverbatim %}
<script src="/static/js/config.js"></script>
<script src="/static/js/require.js"></script>
<script src="/static/js/app/admin/admin.js"></script>

<!-- footer begin -->
<div class="footer">
    <p class="text-muted text-center">Copyright © 2016 {% autoescape off %}{% show_website_info "website_footer" %}{% endautoescape %}</p>
</div>
<!-- footer end -->
</body>
</html>